﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FreesenseSubAIS
{
    public class ResultInfo
    {
        public ItemResult result;
        //public string Msg;
        /// <summary>
        /// 结果标志
        /// -1校正失败
        /// -2灰度均值不合格
        /// 0默认
        /// </summary>
        public int Flagindex;
        public List<int> Sortlist;//NG分类
    }
    public enum ItemResult
    {
        none=0,
        pass,
        failed
    }

    /// <summary>
    /// Mark对位结果
    /// </summary>
    public class MarkResult
    {
        internal ItemResult MarkRlt;
        internal MarkOffset Offset;
        public override string ToString()
        {
            return string.Format("定位结果：{0},x{1},y{2},angle{3}", MarkRlt.ToString(), Offset.col, Offset.row, Offset.angle);
        }
    }

    /// <summary>
    /// 对位偏差
    /// </summary>
    public struct MarkOffset
    {
        public double col;
        public double row;
        public double angle;
    }
}
